package com.zjl.spring.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: zhuangjl
 * @Date: 2021/12/29 17:00
 */
@Component
public class User {

    @Value("${name}")
    private String name;

    @Value("${myprop}")
    private String myprop;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMyprop() {
        return myprop;
    }

    public void setMyprop(String myprop) {
        this.myprop = myprop;
    }
}
